/*
 * bomb.h
 *
 *  Created on: 5 mars 2013
 *      Author: User One*/


#ifndef BOMB_H_
#define BOMB_H_

#include <stdio.h>
#include <stdlib.h>
#include "SDL.h"
#include "SDL_image.h"
#include "../include/game.h"
#include "../include/misc.h"
#include "../include/map.h"


typedef struct s_bomb * t_bomb;

enum e_state {
        time_1 = 0, time_2, time_3, time_4, time_5, time_6
};


t_bomb bomb_set(int x, int y,int power);

void bomb_seton_map (t_player player, t_map map);

void bomb_dec_time(t_bomb bomb);

void bomb_state_set(t_bomb bomb, enum e_state state);

void bomb_change (t_bomb bomb);

int * bomb_from_map(t_map map);

int bomb_get_x(t_bomb bomb);

int bomb_get_y(t_bomb bomb);

int bomb_get_power(t_bomb bomb);

int bomb_kills_player(t_bomb bomb, t_player player, t_map map);

void bomb_expload_case(t_bomb bomb, t_map map);

void bomb_display(t_bomb bomb, SDL_Surface *screen, t_map map);

#endif /* BOMB_H_ */

